import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import { registerMicroApps, start } from 'qiankun';

const app = createApp(App);
app.use(router);
app.use(ElementPlus);
app.mount('#app');

registerMicroApps([
  {
    name: 'sub-app-basic',
    entry: 'http://localhost:7101/',
    container: '#subapp-viewport',
    activeRule: '/sub-app-basic'
  },
   {
    name: 'sub-app-finance',
    entry: 'http://localhost:7102/',
    container: '#subapp-viewport',
    activeRule: '/sub-app-finance'
  }
]);

start();